﻿using Core.Tools.Extension;
using Core.Tools.IOC;
using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using UI.Application.Index.Views;
using UI.Application.Share.Names;

namespace UI.Application.Index
{
    [Module(ModuleName = ModuleNames.ApplicationIndexModule, OnDemand = true)]

    public class ApplicationIndexModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            containerProvider.InitializeAssembly(Assembly.GetExecutingAssembly());            
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterAssembly(Assembly.GetExecutingAssembly());
            containerRegistry.RegisterForNavigation<IndexView>();
        }
    }
}
